﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Domain.Entity
{
    public class NewsArticle
    {
        [Key]
        [HiddenInput(DisplayValue=false)]
        public int Id { get; set; }

        [Editable(false)]
        [HiddenInput]
        public DateTime PostedDate { get; set; }

        [Required]
        public string Title { get; set; }

        public string Abstract { get; set; }

        [Required]
        [DataType(DataType.MultilineText)]
        public string Description { get; set; }
    }
}
